﻿
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = ElectronicWarfare
		Group                          = SensorSuppressorTunings
		Module                         = standard sensor suppressor tuning
		CpuUsage                       = 55.00 TF
		ReactorUsage                   = 20.00 RP
		Type                           = Passive
		Slot                           = Head
		TechnologicalLevel             = T1
		Mass                           = 150.00 kg
		PackedVolume                   = 0.25 U
		Volume                         = 0.50 U
		Sensor Suppressor Locking Range = -5.00 %
        Sensor Suppressor Locking Time  = 15.00 %
		ECMAccumulatorUsage           = 10.00 %
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;

    /// <summary>
    /// Standard Sensor Suppressor tuning module class
    /// </summary>
    /// <remarks>File generated on 22/04/2014 19:58:57</remarks>
    public sealed class StandardSensorSuppressorTuning : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="StandardSensorSuppressorTuning"/> class.
        /// </summary>
        public StandardSensorSuppressorTuning()
            : base(
            "Standard Sensor Suppressor tuning",
            "",
            ModuleMetaGroupsEnum.ElectronicWarfare,
            ModuleGroupsEnum.SensorSuppressorTunings,
            TechnologyLevelsEnum.Level1,
            SizesEnum.Small,
            new LazyFeature[] { 
				new LazyFeature(typeof(EcmCpuUsage<double>),55.00),
				new LazyFeature(typeof(ReactorUsage<double>),20.00),
				new LazyFeature(typeof(ModuleMass<double>),150.00), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 150.00 ){ IsVisible = false },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.SensorSuppressorLockingRange, -0.05 ){ Unit = UnitsEnum.Percentage, DisplayName ="Sensor Suppressor Locking Time" },
                new Modifier( FeatureTypesEnum.Module, FeaturesEnum.SensorSuppressorLockingTime, 0.15 ){ Unit = UnitsEnum.Percentage, DisplayName ="Sensor Suppressor Locking Time" },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.SensorSuppressorAccumulatorUsage, 0.1 ){ Unit = UnitsEnum.Percentage, DisplayName ="ECM Accumulator Usage" },
				 })
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Passive; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Head; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Modules; }
        }
    }
}